package com.book.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bs_user")   //1.绑定对应表名
public class User extends Model<User>{
    @TableId(type = IdType.AUTO)  //设置主键为 自动增加3
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String phone;
    private String company;

    private String ip;

    @TableField(exist = false)
    private String code;
}
